{{assign var="title" value="文章编辑"}}
{{include file="admin/intop.html"}}

<script type="text/javascript" src="res/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="res/js/ueditor/ueditor.all.min.js"></script>

<form id="form1" name="form1" method="post" action="admin.php?ctl=article&act={{$smarty.request.act}}">
<input type="hidden" name="id" value="{{$smarty.request.id}}">
<input type="hidden" name="actname" value="save">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
    <tr class="mouse">
    <td class="lr" style="width:100px;"><font color="red">*</font> 标题</td>
    <td class="lf"><input name="title" type="text" maxlength="20" id="title" value="{{$Item.TITLE}}" style="width:200px;" /></td>
    </tr>
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 分类</td>
    <td class="lf">
        <select  name="catid">
            {{foreach from=$mainMenus item=li}}
            <option value="{{$li.ID}}" {{if $Item.CATID==$li.ID}}selected="selected"{{/if}}>{{$li.NAME}}</option>
            {{/foreach}}
        </select>
    </td>
    </tr>
     <tr class="mouse">
    <td class="lr"><font color="red">*</font> 缩略图</td>
    <td class="lf">

    </td>
    </tr>
     <tr class="mouse">
    <td class="lr"><font color="red">*</font> 内容</td>
    <td class="lf">
        <script id="editor" name="content" type="text/plain" style="width:80%;height:300px;">
            {{$Item.CONTENT}}
        </script>
        <script type="text/javascript">
            var ue = UE.getEditor('editor');
        </script>
    </td>
    </tr>
     <tr class="mouse">
    <td class="lr"><font color="red">*</font> 排序</td>
    <td class="lf"><input name="order_num" type="text" maxlength="20" id="order_num" value="{{$Item.ORDER_NUM}}" style="width:200px;" /></td>
    </tr>
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 状态</td>
    <td class="lf">
        <input type="radio" name="state" id="state1" value="1"{{if $Item.STATE=="" || $Item.STATE==1}} checked="checked"{{/if}}/><label for="state1">启用</label>
    	<input type="radio" name="state" id="state2" value="2"{{if $Item.STATE==2}} checked="checked"{{/if}}/><label for="state2">禁用</label></td>
    </tr>
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 是否评论</td>
    <td class="lf">
        <input type="radio" name="is_comment" id="is_comment1" value="1"{{if $Item.IS_COMMENT=="" || $Item.IS_COMMENT==1}} checked="checked"{{/if}}/><label for="is_comment1">可以</label>
        <input type="radio" name="is_comment" id="is_comment2" value="2"{{if $Item.IS_COMMENT==2}} checked="checked"{{/if}}/><label for="is_comment2">不可以</label></td>
    </tr>
    <tr class="bottom">
    <td colspan="2" align="center"><input type="submit" name="btnSubmit" id="btnSubmit" value="确认保存" /></td>
    </tr>
</table>
</form>
{{include file="admin/infoot.html"}}
